package com.yf1706.bean;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;


/**
 * The persistent class for the rec_template_evaluate database table.
 * 
 */
@Entity
@Table(name="rec_template_evaluate")
@NamedQuery(name="RecTemplateEvaluate.findAll", query="SELECT r FROM RecTemplateEvaluate r")
public class RecTemplateEvaluate implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="evaluate_id")
	private int evaluateId;

	@ManyToOne
	@JoinColumn(name="evaluate_item_id")
	@JSONField(serialize=false)
	private EvaluateSetting evaluateSetting;

	//bi-directional many-to-one association to RecTemplate
	@ManyToOne
	@JoinColumn(name="template_id")
	private RecTemplate recTemplate;

	public RecTemplateEvaluate() {
	}

	public int getEvaluateId() {
		return this.evaluateId;
	}

	public void setEvaluateId(int evaluateId) {
		this.evaluateId = evaluateId;
	}


	public EvaluateSetting getEvaluateSetting() {
		return evaluateSetting;
	}

	public void setEvaluateSetting(EvaluateSetting evaluateSetting) {
		this.evaluateSetting = evaluateSetting;
	}

	public RecTemplate getRecTemplate() {
		return this.recTemplate;
	}

	public void setRecTemplate(RecTemplate recTemplate) {
		this.recTemplate = recTemplate;
	}

}